package com.zjff.myshop.mapper;

import com.zjff.myshop.entity.OrderItem;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrderItemMapper {

    int insert(OrderItem record);

    /**
     * 批量insert订单项数据
     */
    int insertBatch(@Param("orderItems") List<OrderItem> orderItems);

    int deleteByPrimaryKey(Integer id);

    int update(OrderItem record);

    OrderItem selectByPrimaryKey(Integer id);

    List<HashMap<String, Object>> selectVoByOrderId(Integer orderId);
}